# -*- coding:UTF-8 -*-
"""
@Project : pythonProject
@File    : Python-M02.py
@IDE     : PyCharm
@Author  : WorldWind(1772830365@qq.com)
@Address : China - HeiLongjiang - Herbin
@Date    : 2025/7/8 下午8:55
"""
# b.将字符串 "a1b2c3d4" 中的数字和字母分离，分别存入两个列表.

listAlpha = []
listNum = []
data = 'a1b2c3d4'
for i in data:
    if i.isalpha():
       listAlpha.append(i)
    elif i.isalnum():
        listNum.append(i)
print(f'listAlpha: {listAlpha}')
print(f'listNum: {listNum}')